package com.dl.mall.service.admin.impl;

import com.dl.mall.entity.Category;
import com.dl.mall.mapper.CategoryMapper;
import com.dl.mall.service.admin.CategoryService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author DL
 * @create 2022-04-11 11:50
 */
@Service
@Transactional
public class CategoryServiceImpl implements CategoryService {

    @Resource
    private CategoryMapper categoryMapper;

    /**
     * 获取所有分区信息
     * @return 分区信息
     */
    @Override
    public List<Category> getCategory() {
        return categoryMapper.queryCategory();
    }
}
